import request from "@/api";
import {resData} from "@/api/goloalType";
import type {cptChaRes,loginParams,loginResult} from "@/api/login/type";

export const getCaptcha = () => request.get<any, resData<cptChaRes>>
(`/reportApi/sys/login/get_captcha`, {})


export const loginReq = (params:loginParams) => request.post<any, resData<loginResult>>
(`/reportApi/sys/login/login`, params)

export const rxOldLoginReq = (params:{token:string}) => request.post<any, resData<loginResult>>
(`/reportApi/sys/login/rx_old_sys_login`, params)
